// JavaScript Document


	var XmlUtil = {
		
		getList : function( xml, node )
		{
			var list, i, len, obj, nodeList, reulstXml;
			var subLen, subIndex, currentDoc;
			
			
			list = [];
			
			nodeList = node.split( "." );
			i = 0;
			len = nodeList.length;
			while( i<len )
			{
				xml = $(xml).find( nodeList[ i ] );	
				i++;
			}
			
			i = 0;
			len = $(xml).length;
			while( i<len )
			{
				obj = {};
				
				subLen = $(xml)[ i ].childNodes.length;
				subIndex = 0;
				currentDoc;
				
				while( subIndex < subLen )
				{
					currentDoc = $(xml)[ i ].childNodes[ subIndex ];
					
					if( currentDoc && typeof currentDoc !== "undefined" && currentDoc != "[object Text]"  )
					{
						if( currentDoc.tagName )
						{
							obj[currentDoc.tagName] = ( ( currentDoc.text !== undefined ) ? currentDoc.text : currentDoc.textContent ); // ie - currentDoc.text
						}
						else
						{
							obj = ( ( currentDoc.text !== undefined ) ? currentDoc.text : currentDoc.textContent );
						}
					}
					
					++subIndex;
				}
				
				list.push( obj );
				i++;	
			}
			
			return list;
			
		}
		
		
		
		
	}
